added babl_total_usecs
authorØyvind Kolås <ok@src.gnome.org>
Thu, 14 Sep 2006 15:20:36 +0000 (15:20 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Thu, 14 Sep 2006 15:20:36 +0000 (15:20 +0000)
ChangeLog
babl/babl-internal.c

index a4ec272a3132b3ef40d2f96d4e4f364f3d2a7e58..e39774af1716ed58259db24b87d3886e50b5e0ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-14  Øyvind Kolås  <pippin@gimp.org>
+
+       * babl/babl-internal.c: (babl_process): added global babl_total_usecs,
+       not exported through headers, but useful to be able to substract the
+       babl conversion time from other algorithms using babl.
+
 2006-09-12  Øyvind Kolås  <pippin@gimp.org>
 
        * autogen.sh: decreased required automake version to 1.7.9. (It
index 46bd660a1020f8c5d012ac1ad9e5d0b134c4b45c..9b660852a691c7f56aab32d36d0baa5f954f957d 100644 (file)
@@ -75,6 +75,8 @@ babl_die (void)
   exit (-1);
 }
 
+long babl_total_usecs = 0;
+
 long
 babl_process (Babl *babl,
               void *source,
@@ -104,6 +106,7 @@ babl_process (Babl *babl,
        ticks -= babl_ticks();
        ticks *= -1L;
 
+       babl_total_usecs += ticks;
        babl->fish.usecs += ticks;
        babl->fish.processings++;
        babl->fish.pixels += ret;